package com.dao;

import com.pojo.Admins_Accounts;

import java.util.List;

public interface Admins_AccountsDao {
    List<Admins_Accounts> getAllAdmins_Accounts(String query);
    int Add(Admins_Accounts admins_accounts);
    int Delete(int id);
    int Update(Admins_Accounts admins_accounts);
    List<Admins_Accounts> pages(int index,int size,String query);
    int count(String query);
    Admins_Accounts GetById(int id);
    boolean Login(String username,String password);
    int getUidByName(String username);
    String getUnameByPhone(String phone);
    String getRole(int uid);
    boolean CheckPhone(String phone);
    boolean CheckUname(String username);
}
